<%--
功能: 客户等级单选
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ attribute name="items" type="java.util.List" required="true" description="可供选择,需传入list对象"%>
<%@ attribute name="membershipId" type="java.lang.Integer" required="false" description="会员等级id"%>
<c:if test="${not empty items}">
	<select id="membershipId" name="membershipId" style="width:150px;" class="selecttxt">
	<c:forEach items="${items}" var="membership">
		<option value="${membership.membershipId}" <c:if test="${not empty membershipId and membership.membershipId==membershipId}">selected="selected"</c:if>>${membership.membershipName}</option>
	</c:forEach>
	</select>
</c:if>